package week5;

import java.util.Scanner;

public class PP0503 {
    public static void main(String[] args) {
        String num;
        int zeros = 0, ous = 0, jis = 0;

        Scanner scan = new Scanner(System.in);

        System.out.println("输入数字：");
        num = scan.nextLine();
        char []arr = num.toCharArray();
        for (int i = 0; i < num.length(); i++){
            if (arr[i] == 48){
                zeros++;
            }
            else if (arr[i] % 2 == 0 && arr[i] != 48) {
                ous++;
            }
            else
                jis++;
        }

        System.out.println("偶数：" + ous + "个\n" + "奇数：" + jis + "个\n" + "零：" + zeros + "个。");
    }
}
